<?php
// 本类由系统自动生成，仅供测试用途
class DetailAction extends Action{
    public function index(){
        $this->display();
    }
	
	//文章内容页面;
	public function show(){
		
		$id = $_GET['id'];
		//dump($_GET);die();
		if($id) $vo = article_info($id);
		if(is_null($vo)) $vo = article_info($id,true);
		$this->assign('vo',$vo);
		
		//设置title;
		$title = $vo['Archives']['title'].'_'.'散文吧';
		$this->assign('title',$title);
		//设置keywords;
		$keywords = $vo['Archives']['keywords'];
		$this->assign('keywords',$keywords);
		//设置description;
		$description = trim($vo['Archives']['description']);
		$this->assign('description',$description);

		$comments = article_comments($id);
		$this->assign('comments',$comments);
		$this->display();
	}
}
?>